﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using LCA.Utils;
using LCA.Data;

public partial class Admin_LCAImpactFactor_ManageImpactFactors : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            RefreshComponents();
        }
    }

    private void RefreshComponents()
    {

        ctlImpactFactorEditor.RefreshComponents();
    }

    protected void ctlImpactFactorEditor_DataSaved(object sender, EventArgs e)
    {
        Guid id = ((EditorArgs)e).ItemId.Value;
        PageHelper.AdminPageRedirect(Page, "ManageImpactFactors.aspx?factorId=" + id);
    }

    protected void ctlImpactFactorEditor_Cancelled(object sender, EventArgs e)
    {
        PageHelper.AdminPageRedirect(Page, "ManageImpactFactors.aspx");
    }
}